﻿@using IT.CMS.Core;
@using IT.CMS.Core.Infrastructure;
@using IT.CMS.Web.Framework.UI
@{
    //add browser specific CSS files
    var browser = Request.Browser;
    if (browser.Browser == "IE" && browser.MajorVersion == 6)
    {
        Html.AppendCssFileParts("~/Themes/DefaultClean/Content/ie6.css");
    }
    else if (browser.Browser == "IE" && browser.MajorVersion == 7)
    {
        Html.AppendCssFileParts("~/Themes/DefaultClean/Content/ie7.css");
    }
    
    //add main CSS file
    var supportRtl = EngineContext.Current.Resolve<IWorkContext>().WorkingLanguage.Rtl;
    if (supportRtl)
    {
        Html.AppendCssFileParts("~/Themes/DefaultClean/Content/styles.rtl.css");
    }
    else
    {
        Html.AppendCssFileParts("~/Themes/DefaultClean/Content/styles.css");
    }
}